package com.dfbz.demo02_静态代理解决问题;

/**
 * @author lscl
 * @version 1.0
 * @intro: 目标对象(资源的拥有者),被代理对象
 */
public class UserServiceImpl implements UserService {
    @Override
    public void add() {
        System.out.println("添加用户...");
    }

    @Override
    public void delete(Integer id) {
        System.out.println("删除..."+id);
    }

    @Override
    public void update(Integer id) {
        System.out.println("更新..."+id);

    }
    @Override
    public String query() {
        System.out.println("查询...");
        return "ok";
    }

    @Override
    public void flush() {

    }
}
